#include "bsp.h"
#include "rgb.h"
#include "pwm.h"
#include "oled.h"

void Can_Data_Request(void)
{
	char canbuf[8] = {"LEDOK"};
	CAN_TX_PACKET_BYTE(0X406,(uint8_t *)canbuf);
}

int main (void)
{
	uint8_t cnt = 0;
	bsp_init();
	while(1)
	{
		if(timer10ms_flag==1)
		{
			cnt++;
			RGBCtrl();
			if(cnt>10){
				cnt = 0;
				Can_Data_Request();
			}
			timer10ms_flag=0;
		}
	}
}




